package com.xiaoxi.bridgemode.function;

import com.xiaoxi.bridgemode.realization.DisplayImpl;

/**
 * @Author xiaoxi
 * @ProjectName design_mode
 * @PackageName com.xiaoxi.bridgemode.function
 * @ClassName Display
 * @Description TODO
 * @Date 2023/3/13 19:48
 * @Version 1.0
 */
public class Display {

    private DisplayImpl display;

    public Display(DisplayImpl display) {
        this.display = display;
    }

    public void open() {
        display.rawOpen();
    }

    public void print() {
        display.rawPrint();
    }

    public void close() {
        display.rawClose();
    }

    public final void display() {
        open();
        print();
        close();
    }

}
